package com.zahb.qadx.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Zdw on 2020/11/19 15:15
 */
public class QuestionInfoBean implements Parcelable {

    private double medium;
    private double comprehensive;
    private double difficulty;
    private double simple;
    private String typeName;
    private int type;
    private int score;
    private int count;
    private int totalScore;

    public double getMedium() {
        return medium;
    }

    public void setMedium(double medium) {
        this.medium = medium;
    }

    public double getComprehensive() {
        return comprehensive;
    }

    public void setComprehensive(double comprehensive) {
        this.comprehensive = comprehensive;
    }

    public double getDifficulty() {
        return difficulty;
    }

    public void setDifficulty(double difficulty) {
        this.difficulty = difficulty;
    }

    public double getSimple() {
        return simple;
    }

    public void setSimple(double simple) {
        this.simple = simple;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(int totalScore) {
        this.totalScore = totalScore;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeDouble(this.medium);
        dest.writeDouble(this.comprehensive);
        dest.writeDouble(this.difficulty);
        dest.writeDouble(this.simple);
        dest.writeString(this.typeName);
        dest.writeInt(this.type);
        dest.writeInt(this.score);
        dest.writeInt(this.count);
        dest.writeInt(this.totalScore);
    }

    public QuestionInfoBean() {
    }

    protected QuestionInfoBean(Parcel in) {
        this.medium = in.readDouble();
        this.comprehensive = in.readDouble();
        this.difficulty = in.readDouble();
        this.simple = in.readDouble();
        this.typeName = in.readString();
        this.type = in.readInt();
        this.score = in.readInt();
        this.count = in.readInt();
        this.totalScore = in.readInt();
    }

    public static final Creator<QuestionInfoBean> CREATOR = new Creator<QuestionInfoBean>() {
        @Override
        public QuestionInfoBean createFromParcel(Parcel source) {
            return new QuestionInfoBean(source);
        }

        @Override
        public QuestionInfoBean[] newArray(int size) {
            return new QuestionInfoBean[size];
        }
    };
}
